<script setup>
import Title from '@/components/title.vue';
import powerLine from '@/components/echart/powerLine.vue';
import energyList from './energy-List.vue';
import energyTable from './energy-table.vue';
</script>

<template>
    <div class="page">
        <div class="top">
            <Title title="舒适度数据统计"></Title>
            <energyList class="list"></energyList>
        </div>
        <div class="mida">
            <Title title="能源数据情况"></Title>
            <powerLine></powerLine>
        </div>
        <div class="bottom">
            <Title title="机主运行情况"></Title>
            <energyTable class="table"></energyTable>
        </div>
    </div>
</template>

<style scoped lang="scss">
.page {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    margin-left: 20px;
    font-size: 20rem;

    .top {
        margin-top: 50px;
        flex: 0 0 27%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);

        .list {
            height: calc(100% - 20px);
        }
    }


    .mida {
        flex: 0 0 27%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
    }

    .bottom {
        flex: 0 0 45%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);

        .bottom-table {
            height: calc(100% - 20px);
            width: 100%;
        }
    }

}
</style>
